<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">

  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-language" content="es" />
    <link href="/keretano/system/css/JQuery/pepper-grinder/jquery-ui-1.10.3.custom.min.css" rel="stylesheet"  type="text/css">
    <link href="/keretano/system/css/global/principal.css" rel="stylesheet"  type="text/css">
    <link href="/keretano/system/css/tgrid/TGrid.css" rel="stylesheet" type="text/css" media="screen"/>
    <script type="text/javascript" src="/keretano/system/js/JQuery/sis/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="/keretano/system/js/JQuery/ui/jquery-ui-1.10.3.custom.min.js"></script>
    <script type="text/javascript" src="/keretano/system/js/JQuery/sis/jquery.mask.min.js"></script>
    

    <script type="text/javascript" src="/keretano/system/js/TGrid/func.js"></script>
    <script type="text/javascript" src="/keretano/system/js/TGrid/tgrid.js"></script>
    <script type="text/javascript" src="/keretano/system/js/TGrid/paginador.js"></script>

    <script type="text/javascript" src="/keretano/system/js/<?php echo MODEL ?>base.js"></script>
    <script type="text/javascript" src="/keretano/system/js/<?php echo MODEL ?>global.js"></script>
    <script type="text/javascript" src="/keretano/system/js/<?php echo MODEL . $sPagina ?>.js"></script>
    <script type="text/javascript" src="/keretano/system/js/GVista/gvista.js"></script>

    <script>
      /* Abrir y Cerrar Chat */
      function MostrarDiv(div) {
        $('#' + div).show();
      }

      function CerrarDiv(div) {
        $('#' + div).hide();
      }

      /* Cerrar chat en cualquier parte del la web*/
      document.onclick = function(e) {
        e = e || event;
        var target = e.target || e.srcElement;
        var elemento = document.getElementById('caja-buscador');
        var elemento2 = document.getElementById('caja-chat');
        do {
          if (elemento == target || elemento2 == target) {
            return;
          }
          target = target.parentNode;
        } while (target)
        $("#caja-buscador").hide();
        $("#caja-chat").hide();
      }
      /* Abrir combo cuando selecciona cheque*/
      function toggle_ocupacion(elemento) {
        if (elemento.value == 'CH-') {
          document.getElementById("bancos").style.display = "inline";
        } else {
          document.getElementById("bancos").style.display = "none";
        }

      }

      /* Colocar el texto del campo en el campo de busquedas avanzadas*/
      $(document).ready(function() {
        $("#texto-caja").keyup(function() {
          var value = $(this).val();
          $("#texto-caja2").val(value);
        });
      });
      $(document).ready(function() {
        $("#texto-caja2").keyup(function() {
          var value = $(this).val();
          $("#texto-caja").val(value);
        });
      });
    </script>

  </head>